<template>
  <MainNav v-show="$route.name != 'login'"></MainNav>
  <router-view />
</template>

<script lang="ts">
import { defineComponent } from "vue";
import MainNav from "@/components/MainNav.vue";
import { useStore } from "vuex";
export default defineComponent({
  name: "App",
  components: {
    MainNav,
  },
  setup: () => {
    const store = useStore();
    store.dispatch("getUserMsgAction");
    return {};
  },
});
</script>

<style lang='less'>
#main-app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>
